<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>Administrar Internacionalização</title>
</h:head>
<h:body>
	<h:form id="admInternacionalizacao"><!--

		<table width="100%">
			<tr>
				<td><ui:include src="menuPrincipal.xhtml" /></td>
			</tr>
		</table>
		--><table width="40%" align="center">
			<tr>
				<td><p:panel header="Internacionalização">
						<h:panelGrid columns="2" cellpadding="5" width="40%"
							style="width:100%">
							<h:outputText id="chave" value="Chave: " />
							<p:inputText id="chaveText" value="#{salaoMB.chave}"
								maxlength="50" size="50" required="true"
								requiredMessage="Campo Obrigatório" />

							<h:outputText id="dft" value="Default: " />
							<p:inputText id="defaultText" value="#{salaoMB.dft}"
								maxlength="60" size="50" required="true"
								requiredMessage="Campo Obrigatório" />

							<h:outputText id="portugues" value="Português: " />
							<p:inputText id="portuguesText" value="#{salaoMB.portugues}"
								maxlength="60" size="50" />

							<h:outputText id="ingles" value="Inglês: " />
							<p:inputText id="inglesText" value="#{salaoMB.ingles}"
								maxlength="60" size="50" />

							<h:outputText id="espanhol" value="Espanhol: " />
							<p:inputText id="espanholText" value="#{salaoMB.espanhol}"
								maxlength="60" size="50" />

							<p:commandButton type="reset" value="Limpar" icon="ui-icon-close" />
							<p:commandButton type="submit" action="#{salaoMB.incluir}"
								value="Gravar" icon="ui-icon-disk" update="mensagem"/>

						</h:panelGrid>						
					</p:panel>
					<h:message for="admInternacionalizacao" id="mensagem" />
					</td>
			</tr>
		</table>
	</h:form>
</h:body>
</html>